﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class ORDERBUS
    {
        public static void AddOrder(ORDER or)
        {
            ORDERDAO.AddOrder(or);
        }
        public ORDER[] layBang()
        {
            ORDERDAO or = new ORDERDAO();
            return or.layBang();
        }
        public ORDER[] SelectOrderByID(int idmember)
        {
            ORDERDAO or = new ORDERDAO();
            return or.SelectOrderByID(idmember);
        }

        public static int SoLuongDaDat(int idPro)
        {
            return ORDERDAO.SoLuongDaDat(idPro);
        }
    }
}
